/*-------------------------------------------------------------------------
   File :            VCSInterFace.h
   Project :       VCS (Verix Communication Server)
   Description : VMAC Events
**************************************************************************
   Copyright (C) 2003 by VeriFone, Inc.

   All rights reserved.  No part of this software may be reproduced,
   transmitted, transcribed, stored in a retrieval system, or translated
   into any language or computer language, in any form or by any means,
   electronic, mechanical, magnetic, optical, chemical, manual or otherwise,
   without the prior written permission of VeriFone, Inc.
---------------------------------------------------------------------------*/



// Listed here are all the events and data fields that are exchanged between the client and server
// Put items here that both the Client and Server will use.

// Event to Activate Comm Server
#define VCS_EVT_SERV_ACTIVATE	        7790
#define VCS_SERVER_LOGIGAL_NAME	"COMMSVR"

// Client Initiated Request Events
#define VCS_EVT_VER_REQ			7770
#define VCS_EVT_INIT_REQ			7771
#define VCS_EVT_DEINIT_REQ			7772
#define VCS_EVT_CONN_REQ			7773
#define VCS_EVT_DISC_REQ			7774
#define VCS_EVT_SEND_REQ			7775
#define VCS_EVT_RECV_REQ			7776
#define VCS_EVT_DATA_RAW			7777
#define VCS_EVT_STATUS_REQ			7778

// Server Response Events
#define VCS_EVT_VER_RESP			7780
#define VCS_EVT_INIT_RESP			7781
#define VCS_EVT_DEINIT_RESP		7782
#define VCS_EVT_CONN_RESP			7783
#define VCS_EVT_DISC_RESP			7784
#define VCS_EVT_SEND_RESP			7785
#define VCS_EVT_RECV_RESP			7786
#define VCS_EVT_STATUS_RESP		7788

//Flexi record IDs
#define VCS_FLD_SESS_HANDLE		100
#define VCS_FLD_SESS_ERROR			101
#define VCS_FLD_SESS_NATIVE		102
#define VCS_FLD_SESS_VERSION		103
#define VCS_FLD_CONN_HOSTCTX		301
#define VCS_FLD_CONN_HOSTSSL		302
#define VCS_FLD_CONN_CLNTAUTH		303
#define VCS_FLD_CONN_SSLCERT		304
#define VCS_FLD_CONN_PVTKEY		305
#define VCS_FLD_CONN_URL			306
#define VCS_FLD_CONN_PORT			307
#define VCS_FLD_CONN_APPGROUP		308
#define VCS_FLD_SEND_BUFSIZE		501
#define VCS_FLD_RECV_BUFSIZE		601
#define VCS_FLD_RECV_TIMEOUT		602

#define VCS_FLD_STATUS_IDS              700
#define VCS_FLD_CONN_STATUS           701
#define VCS_FLD_STATUS_MSG             702

/*
Short: Signal strength integer as is returned by the wireless device
*/
#define VCS_FLD_STATUS_SIGNAL_STRENGTH_ACTUAL   703
/*
Short : Signal strength calculated as a percentage.
*/
#define VCS_FLD_STATUS_SIGNAL_STRENGTH_PERCNT   704
/*
Short : Network connection status.
*/
#define VCS_FLD_STATUS_NETWORK_CONNECTION   705
/*
String : Network connection status message.
*/
#define VCS_FLD_STATUS_NETWORK_CONNECTION_MESS   706

/****
Please note: Field ID's 700 - 800 are reserved for the CommServer status message.
****/

//Error Values returned by Comm Server
#define VCS_ERR_MISSING_DATA		1001
#define VCS_ERR_NO_SESSHAND		1002
#define VCS_ERR_DUP_SESSION		1003
#define VCS_ERR_NO_MEMORY			1004
#define VCS_ERR_INVALID_SESS		1005
#define VCS_ERR_NO_HOSTCTX		1006
#define VCS_ERR_NO_CONN_PORT		1007
#define VCS_ERR_NO_CONN_URL		1008
#define VCS_ERR_CONN_FAILED		1009
#define VCS_ERR_NO_SENDBUF_SIZE	1010
#define VCS_ERR_LARGE_SEND			1011
#define VCS_ERR_DATA_SEND			1012
#define VCS_ERR_NO_RECVBUF_SIZE	1013
#define VCS_ERR_LARGE_RECV			1014
#define VCS_ERR_DATA_RECV			1015
#define VCS_ERR_IO_INIT_FAILED		1016
#define VCS_ERR_NO_STATUS_IDS        1017

// Max values
#define MAX_STATUS_FIELDS   10
